<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  name: "App",
  created() {
    let getCity = sessionStorage.getCity;

    if (getCity) {
      this.$store.dispatch("GETCITYDATA", JSON.parse(getCity));
    } else {
      this.$store.dispatch("GETCITYDATA", {
        listName: "中国大陆",
        listDetail: "+86",
        showReturn: true,
        path: "",
        returnColor: "#A2C0B8"
      });
    }
  }
};
</script>

<style lang="stylus">
@import 'common/styl/reset.styl'
@import 'common/styl/mixin'
#app
  font-family 'Avenir', 'Microsoft YaHei', Helvetica, Arial, sans-serif
  -webkit-font-smoothing antialiased
  -moz-osx-font-smoothing grayscale
  color #2c3e50
  // router-link-active
  .router-link-active
    p
      font-weight bold
      font-size rem(14)
</style>
